package com.cweb.admin.model.sys.sys_area_info.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.cweb.framework.base.entity.BaseMybatisModel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 系统-区域字典
 * @author changfan
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class SysAreaInfo extends BaseMybatisModel {

    private static final long serialVersionUID=1L;

    /**
     * 区代码
     */
    @TableId(value = "area_code")
    private String areaCode;

    /**
     * 区名称
     */
    @TableField(value = "`area_label`")
    private String areaLabel;

    /**
     * 城市代码
     */
    @TableField(value = "`city_code`")
    private String cityCode;

    /**
     * 城市名称
     */
    @TableField(value = "`city_label`")
    private String cityLabel;

    /**
     * 省代码
     */
    @TableField(value = "`province_code`")
    private String provinceCode;

    /**
     * 省名称
     */
    @TableField(value = "`province_label`")
    private String provinceLabel;


    @Override
    protected Serializable pkVal() {
        return this.areaCode;
    }

}
